<div class="navbar menu-friend">
    <div class="navbar-inner menu-friend-inner">
	<ul class="nav">
	    <li <?php if (Yii::app()->controller->action->id == "find_friend") echo 'class="active"'; ?>> <a href="<?php echo SITE_NAME_URL ?>friend/find_friend"><i class="icon-search"></i> Find Friends</a></li>
	    <li <?php if (Yii::app()->controller->action->id == "index") echo 'class="active"'; ?>> 
		<a href="<?php echo SITE_NAME_URL ?>friend"><img class='img-icon' src='<?php echo WWW_URL ?>images/icon-group.png'/> 
		    My Friends 
		    <span class='btn btn-danger number-notify' id='num-friend' <?php
		    $numOfAccept = Friend::getAcceptFriend(user()->id);
		    if ($numOfAccept <= 0)
			echo "style='display:none;'";
		    ?>><?php echo $numOfAccept ?></span>		
		</a></li>
	    <li <?php if (Yii::app()->controller->action->id == "incoming_request") echo 'class="active"'; ?>><a href="<?php echo SITE_NAME_URL ?>friend/incoming_request">
		    <i class="icon-circle-arrow-up"></i>
		    Incoming Friend Requests
		    <span class='btn btn-danger number-notify'<?php
		    $numOfRequested = FriendRequest::getFriendRequest(user()->id);
		    if ($numOfRequested <= 0)
			echo "style='display:none;'";
		    ?>><?php echo $numOfRequested ?></span>
		</a></li>
	    <li <?php if (Yii::app()->controller->action->id == "pending_request") echo 'class="active"'; ?>><a href="<?php echo SITE_NAME_URL ?>friend/pending_request"> <i class="icon-exclamation-sign"></i> Outgoing Friend Requests </a></li>	  
	</ul>
    </div>
</div>